<?php

namespace app\controller\admin;

use app\BaseController;
use app\model\CouponOrder;
use app\model\UserChangeScore;
use think\response\Json;

class Order extends BaseController
{
    public function lst(): Json
    {
        return $this->success($this->app->make(\app\model\Order::class)->getPage());
    }

    public function download(): Json
    {
        return $this->success($this->app->make(\app\model\Order::class)->download());
    }

    public function changeLst(): Json
    {
        return $this->success($this->app->make(UserChangeScore::class)->getPage());
    }

    public function changeDownload(): Json
    {
        return $this->success($this->app->make(UserChangeScore::class)->download());
    }

    public function scoreLst(): Json
    {
        return $this->success($this->app->make(\app\model\UserScoreRecharge::class)->getPage());
    }

    public function scoreDownload(): Json
    {
        return $this->success($this->app->make(\app\model\UserScoreRecharge::class)->download());
    }

    public function couponLst(): Json
    {
        return $this->success($this->app->make(CouponOrder::class)->pageData());
    }

    public function addOrder(): Json
    {
        return $this->success($this->app->make(\app\model\Order::class)->addOrder());
    }

    public function chat(): Json
    {
        return $this->success($this->app->make(\app\model\Order::class)->chat());
    }

    public function scoreChat(): Json
    {
        return $this->success($this->app->make(\app\model\UserScoreRecharge::class)->chat());
    }
}
